<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Projet Jetpack:  Fichier source de /home/p1006250/lif7-projet-jetpack/src/Terrain.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Projet Jetpack
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_terrain_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Terrain.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_terrain_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef TERRAIN_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define TERRAIN_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="_sprite_8h.html">Sprite.h</a>&quot;</span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00009"></a><a class="code" href="_terrain_8h.html#a8a6befd630ea1c2ab260266f7466540c">00009</a> <span class="preprocessor">#define CACHE_SIZE 5000</span>
<a name="l00010"></a><a class="code" href="_terrain_8h.html#a6068a247ff9ece1b0a9773c58144906c">00010</a> <span class="preprocessor"></span><span class="preprocessor">#define LARGEUR_FENETRE 1800</span>
<a name="l00011"></a><a class="code" href="_terrain_8h.html#afd1a1e285af564b849b17498e82e1a41">00011</a> <span class="preprocessor"></span><span class="preprocessor">#define HAUTEUR_FENETRE 415</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00013"></a>00013 
<a name="l00014"></a><a class="code" href="_terrain_8h.html#a024e9adfdc8e0b14345d217083886e94">00014</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct_ssprite.html">Ssprite</a> <a class="code" href="struct_sprite.html">Sprite</a>;
<a name="l00015"></a>00015 
<a name="l00022"></a><a class="code" href="structs_terrain.html">00022</a> <span class="keyword">struct </span><a class="code" href="structs_terrain.html">sTerrain</a>
<a name="l00023"></a>00023 {
<a name="l00024"></a><a class="code" href="structs_terrain.html#af4ffcf044ec7b408dbad1fbb981de1c9">00024</a>     <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#af4ffcf044ec7b408dbad1fbb981de1c9">nbtiles_largeur_monde</a>,<a class="code" href="structs_terrain.html#ab27a7bca0b8d1bfd8c501b0b8b4c6e69">nbtiles_hauteur_monde</a>;
<a name="l00025"></a><a class="code" href="structs_terrain.html#a5692b40e1e9677764b6da00a4c2c24e9">00025</a>     <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#a5692b40e1e9677764b6da00a4c2c24e9">xscroll</a>;
<a name="l00026"></a><a class="code" href="structs_terrain.html#a8ee104dd02c94a9fdbba663441b4d2da">00026</a>     <span class="keywordtype">char</span> **<a class="code" href="structs_terrain.html#a8ee104dd02c94a9fdbba663441b4d2da">schema</a>;
<a name="l00027"></a><a class="code" href="structs_terrain.html#afd885af4967004f679bcfbe9bcf7e14f">00027</a>     <span class="keywordtype">int</span> *<a class="code" href="structs_terrain.html#afd885af4967004f679bcfbe9bcf7e14f">tileplein</a>;
<a name="l00028"></a><a class="code" href="structs_terrain.html#ae1aadb12d851b94edc5e17bd040ff221">00028</a>     <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#ae492d90d2e194e0a52854cf384d98cbf">nbtilesX</a>,<a class="code" href="structs_terrain.html#ae1aadb12d851b94edc5e17bd040ff221">nbtilesY</a>;
<a name="l00029"></a><a class="code" href="structs_terrain.html#a0e051c9ed4fa978482d6b31da8bf1ec1">00029</a>     <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#a0e051c9ed4fa978482d6b31da8bf1ec1">largeur_fenetre</a>, <a class="code" href="structs_terrain.html#add43770da89e527d94605cea90ca3491">hauteur_fenetre</a>;
<a name="l00030"></a><a class="code" href="structs_terrain.html#ab958ea78e1078769b3e02c1618b5c015">00030</a>     <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#ab958ea78e1078769b3e02c1618b5c015">LARGEUR_TILE</a>,<a class="code" href="structs_terrain.html#add63ba136dabd9690e18e14258093f16">HAUTEUR_TILE</a>;
<a name="l00031"></a><a class="code" href="structs_terrain.html#ac574f4029747f03bf0dc96c164cec50c">00031</a>     <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#a8211b66a78c1e426bc98908431d40bcf">focusx</a>, <a class="code" href="structs_terrain.html#ac574f4029747f03bf0dc96c164cec50c">focusy</a>, <a class="code" href="structs_terrain.html#af9815df6b8a253e3db89b907f4a1198f">focusw</a>, <a class="code" href="structs_terrain.html#ac55032d53fb52475a4b4898f3f806b36">focush</a>;
<a name="l00032"></a><a class="code" href="structs_terrain.html#a276723ce5e13846eaf00445cf0206b54">00032</a>     <a class="code" href="struct_sprite.html">Sprite</a>* <a class="code" href="structs_terrain.html#a276723ce5e13846eaf00445cf0206b54">focusSprite</a>;
<a name="l00033"></a>00033 };
<a name="l00034"></a><a class="code" href="_terrain_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">00034</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_terrain.html">sTerrain</a> <a class="code" href="structs_terrain.html">Terrain</a>;
<a name="l00035"></a>00035 
<a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#aa3b3da7033de7e4286324e724ec4eaed" title=" Brief Description  initialise le terrain.  ">terInit</a>(<a class="code" href="structs_terrain.html">Terrain</a> * pTer, <a class="code" href="structs_terrain.html">Terrain</a> * pTersuiv);
<a name="l00042"></a>00042 
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 
<a name="l00051"></a>00051 <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="_terrain_8c.html#afc0d7ba57ea830d333bfc3da9c85d467" title=" Brief Description  Test les coordonnées du terrain .  ">terGetXY</a>(<span class="keyword">const</span> <a class="code" href="structs_terrain.html">Terrain</a> * pTer, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
<a name="l00052"></a>00052 
<a name="l00060"></a>00060 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a029274c956d735b0306882b42a65c028" title=" Brief Description  Test les coordonnées du terrain . \">terSetXY</a>(<a class="code" href="structs_terrain.html">Terrain</a> * pTer, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">char</span> valeur);
<a name="l00061"></a>00061 
<a name="l00068"></a>00068 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="_terrain_8c.html#a894e796af5dd61fa8e8879d74c4c197b" title=" Brief Description  Retourne la valeur dimx .  ">getDimX</a>(<span class="keyword">const</span> <a class="code" href="structs_terrain.html">Terrain</a> * pTer);
<a name="l00069"></a>00069 
<a name="l00076"></a>00076 <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="_terrain_8c.html#af3b892a93ee78d81a03111d8b00231fe" title=" Brief Description  Retourne la valeur dimy .  ">getDimY</a>(<span class="keyword">const</span> <a class="code" href="structs_terrain.html">Terrain</a> * pTer);
<a name="l00077"></a>00077 
<a name="l00083"></a>00083 <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="_terrain_8c.html#a7c49ccfd3dd17d702e1932887b9e4a37">selectTerrain</a>(<span class="keywordtype">char</span> * chemin);
<a name="l00084"></a>00084 
<a name="l00090"></a>00090 <span class="keywordtype">int</span> <a class="code" href="_terrain_8c.html#a792510fb6567e176139dfd69ba70bfd2" title=" Brief Description  Verifie la prochaine case.  ">verifProchCase</a>(<span class="keyword">const</span> <a class="code" href="structs_terrain.html">Terrain</a> *pTer, <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y);
<a name="l00091"></a>00091 
<a name="l00098"></a>00098 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a675c6eb724cc04f4bd54187a9c726e22" title=" Brief Description  Charge une carte.  ">chargerNiveau</a>(FILE* F,<a class="code" href="structs_terrain.html">Terrain</a> * pTer);
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 
<a name="l00107"></a>00107 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a4ef14b5a22617c05c57c15a684181489" title=" Brief Description  Charge Les tileset.  ">chargerTileset</a>(FILE* F,<a class="code" href="structs_terrain.html">Terrain</a> * pTer);
<a name="l00108"></a>00108 
<a name="l00119"></a>00119 <a class="code" href="struct_sprite.html">Sprite</a>* <a class="code" href="_terrain_8c.html#a1ed790fb54f2f8aa6a08b2490a14a03f" title=" Brief Description Focalise la fenêtre sur le personnage.   ">FocusScrollBox</a>(<a class="code" href="structs_terrain.html">Terrain</a>* pTer,<a class="code" href="struct_sprite.html">Sprite</a>* pSprite, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> w, <span class="keywordtype">int</span> h);
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a65ce23314928441923707ec041871779">chargerTerrain</a>(<a class="code" href="structs_terrain.html">Terrain</a> * pTer, <span class="keyword">const</span> <span class="keywordtype">char</span>* level,<span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#a0e051c9ed4fa978482d6b31da8bf1ec1">largeur_fenetre</a>,<span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#add43770da89e527d94605cea90ca3491">hauteur_fenetre</a>);
<a name="l00122"></a>00122 
<a name="l00129"></a>00129 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#ae33e1396c7355287a37411d53fdf0394" title=" Brief Description  Charge la carte.   ">CopieProchCarte</a>(<a class="code" href="structs_terrain.html">Terrain</a>* m, <a class="code" href="structs_terrain.html">Terrain</a>* suiv);
<a name="l00130"></a>00130 
<a name="l00137"></a>00137 <span class="keywordtype">int</span> <a class="code" href="_terrain_8c.html#a942cc755e3b7ac930ae732b7be92c648" title=" Brief Description  Libère la mémoire allouée .  ">libereTerrain</a>(<a class="code" href="structs_terrain.html">Terrain</a>* pTer);
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_terrain_8h.html">Terrain.h</a>      </li>

    <li class="footer">Généré le Lundi Décembre 17 2012 01:09:40 pour Projet Jetpack par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
